<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


/*Route::group(['namespace' => 'Web'], function () {
    //首页
    Route::get('/','HomeController@index');
    //创建
    Route::group(['middleware' => 'auth:web'], function() {
        Route::get('/post/create', 'PostController@Create');
        Route::post('/posts', 'PostController@store');
        //文件上传
        Route::post('/posts/image/upload', 'PostController@ImageUpload');
        //详情页面
        Route::get('/post/{post}', 'PostController@show');

    });
    //登录
    Route::get('/login','LoginController@index');
    Route::post('/login','LoginController@Login');
    Route::get('/logout','LoginController@logout');

    //注册
    Route::get('/register','RegisterController@index');
    Route::post('/register','RegisterController@register');
});*/

include_once "admin.php";
include_once "home.php";